

#ifndef WIN_TCP_CLIENT_ZS_TIMER_H
#define WIN_TCP_CLIENT_ZS_TIMER_H

#include "Poco/Timer.h"
#include <functional>

namespace zs
{
    using TimerCallback = std::function<std::string()>;
    class CZSTimer
    {
    public:
        CZSTimer(long interval, TimerCallback callback);
        ~CZSTimer();
    private:
        void timer_func(Poco::Timer&);
    private:
        long interval_;
        Poco::Timer timer_;
        TimerCallback callback_;
    };
}


#endif //WIN_TCP_CLIENT_ZS_TIMER_H
